import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_adopt_tree_record_model_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeAdoptTreeRecordModelEntity {
	int? additionalYunChaSeed;
	int? adoptedYear;
	int? amount;
	String? buyerRemark;
	String? code;
	int? consumerGoldRedEnvelope;
	String? createTime;
	String? endTime;
	int? fAdoptedTreeId;
	int? fUserId;
	int? id;
	int? isGive;
	String? memberCode;
	String? mobile;
	String? name;
	int? opexManagerFee;
	int? orderConsumerGoldRedEnvelope;
	int? orderFee;
	int? orderTeaOilCard;
	int? orderYunChaSeed;
	String? parentCode;
	String? parentName;
	String? payChannel;
	int? payFee;
	String? payTime;
	int? price;
	String? remark;
	String? rootName;
	String? startTime;
	String? status;
	int? teaOilCard;
	int? treeFee;
	String? treeIconPath;
	String? treeName;
	int? yunChaSeed;

	XinHeAdoptTreeRecordModelEntity();

	factory XinHeAdoptTreeRecordModelEntity.fromJson(Map<String, dynamic> json) => $XinHeAdoptTreeRecordModelEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeAdoptTreeRecordModelEntityToJson(this);

	XinHeAdoptTreeRecordModelEntity copyWith({int? additionalYunChaSeed, int? adoptedYear, int? amount, String? buyerRemark, String? code, int? consumerGoldRedEnvelope, String? createTime, String? endTime, int? fAdoptedTreeId, int? fUserId, int? id, int? isGive, String? memberCode, String? mobile, String? name, int? opexManagerFee, int? orderConsumerGoldRedEnvelope, int? orderFee, int? orderTeaOilCard, int? orderYunChaSeed, String? parentCode, String? parentName, String? payChannel, int? payFee, String? payTime, int? price, String? remark, String? rootName, String? startTime, String? status, int? teaOilCard, int? treeFee, String? treeIconPath, String? treeName, int? yunChaSeed}) {
		return XinHeAdoptTreeRecordModelEntity()
			..additionalYunChaSeed= additionalYunChaSeed ?? this.additionalYunChaSeed
			..adoptedYear= adoptedYear ?? this.adoptedYear
			..amount= amount ?? this.amount
			..buyerRemark= buyerRemark ?? this.buyerRemark
			..code= code ?? this.code
			..consumerGoldRedEnvelope= consumerGoldRedEnvelope ?? this.consumerGoldRedEnvelope
			..createTime= createTime ?? this.createTime
			..endTime= endTime ?? this.endTime
			..fAdoptedTreeId= fAdoptedTreeId ?? this.fAdoptedTreeId
			..fUserId= fUserId ?? this.fUserId
			..id= id ?? this.id
			..isGive= isGive ?? this.isGive
			..memberCode= memberCode ?? this.memberCode
			..mobile= mobile ?? this.mobile
			..name= name ?? this.name
			..opexManagerFee= opexManagerFee ?? this.opexManagerFee
			..orderConsumerGoldRedEnvelope= orderConsumerGoldRedEnvelope ?? this.orderConsumerGoldRedEnvelope
			..orderFee= orderFee ?? this.orderFee
			..orderTeaOilCard= orderTeaOilCard ?? this.orderTeaOilCard
			..orderYunChaSeed= orderYunChaSeed ?? this.orderYunChaSeed
			..parentCode= parentCode ?? this.parentCode
			..parentName= parentName ?? this.parentName
			..payChannel= payChannel ?? this.payChannel
			..payFee= payFee ?? this.payFee
			..payTime= payTime ?? this.payTime
			..price= price ?? this.price
			..remark= remark ?? this.remark
			..rootName= rootName ?? this.rootName
			..startTime= startTime ?? this.startTime
			..status= status ?? this.status
			..teaOilCard= teaOilCard ?? this.teaOilCard
			..treeFee= treeFee ?? this.treeFee
			..treeIconPath= treeIconPath ?? this.treeIconPath
			..treeName= treeName ?? this.treeName
			..yunChaSeed= yunChaSeed ?? this.yunChaSeed;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}